import React from 'react';
import {connect} from 'react-redux'
class Count extends React.Component {
    render() {
        return <div className='' style={{color:this.props.color123}}>
            <h1>COUNT:{this.props.num}</h1>
        </div>;
    }
}
Count = connect((state)=>{
  return {
    num:state.countReducer.count,
    color123:state.colorReducer.color
  }
},(dispatch)=>{
  return {
    dispatch
  }
})(Count)
export default Count